

	<table width="100%"  cellpadding="2" cellspacing="0" class="attachtable" align="left">
	    <#list attachments as a>
	<#assign hasThumb = a.hasThumb()/>
		<#if hasThumb>
		 
				<td width="100%" colspan="3" align="center" class="attachrow">
					<#if !thumbShowBox>
						<a href="${JForumContext.encodeURL("/posts/downloadAttach/${a.id}")}">
					</#if>
					<img src="${contextPath}/${a.thumbPath()}"" alt="[Thumb - ${a.info.realFilename}]" border="0"/>
					<#if !thumbShowBox></a></#if>
				</td>
			 
		</#if>

		<#if !hasThumb || thumbShowBox>
		       
		      <div style="font-size:14px;">
		                 <span style="color:green;font-weight:bold;">附件${a_index+1}：</span>  
		      <a href="${JForumContext.encodeURL("/posts/downloadAttach/${a.id}")}">
		      <span style="color:#01336B;font-weight:bold;text-decoration: underline;">
		      ${a.info.realFilename}
		      (文件大小:
		      <#assign sizeKB=(a.info.filesize/1024)/>
		      
		      <#if (sizeKB>1024) >
		         ${sizeKB/1024} MB
		      <#else>
		        <#if (sizeKB<1)>
		         ${a.info.filesize} bytes
		        <#else>
		         ${sizeKB} KB
		        </#if>
		      </#if>

		               下载次数:${a.info.downloadCount}次)
		      </span>
		       
		      <#if a.info.extension.uploadIcon ?exists>
		      <img src="${contextPath}/templates/${templateName}/images/attachmentIcons/${a.info.extension.uploadIcon}" alt="AttachmentIcon"/>
		      <#else>
		      <img src="${contextPath}/templates/${templateName}/images/download.gif" alt="[下载]" />
		      </#if>
		      
		      </a>
		     </div>
		</#if>
		 <br />
		</#list>
		
	</table>
	 

